<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Nuevo Tema</title>
        <?php
        include_once('head.php');
        ?>
    </head>
    <body>
        
        <?php

        $tema = $_GET['tema'];

        include_once('cabecera.php');
        include_once('menuUsuario.php');
        include_once('BD/mensajeSQL.php');

        ?>

        <div id="nuevoTema">
            <p id="tituloSeccion">Crear Tema</p>
            <form action="gestionTemas.php" method="post">
                <b>Asunto: </b><input name="asunto" value="" type="text"> <br />
                <input type="submit" name="crear" value="Crear">
                <input type="reset" name="borrar" value="Borrar">
                <?php echo '<input type="hidden" name="tema" value="' .$tema. '">'?>
            </form>

            <?php
            if(isset($_COOKIE['errorTema'])){
                echo '<div id="errorTema">';
                echo "Error: " . $_COOKIE['errorTema'];
                setcookie("errorTema", "", time() -3600);
                echo '</div>';
            }
            ?>

        </div>

        <?php

        include_once('piePagina.php');

        ?>
    </body>
</html>
